package com.zyk.scaffold.user.rpc;

import com.zyk.scaffold.user.mail.components.MailComponent;
import com.zyk.scaffold.user.dto.MailMessageDTO;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class MailRpcServiceImpl implements MailRpcService{

    @Autowired
    private MailComponent mailComponent;

    @Override
    public Boolean sendMessageMail(MailMessageDTO mailMessageDTO) {
        return mailComponent.send(mailMessageDTO);
    }
}
